package com.send;

import java.util.HashMap;
import java.util.Map;

import org.assertj.core.util.Maps;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.dubbo.config.annotation.Reference;
import com.send.api.IQueue;
import com.send.config.EmailConfig;

@Controller
public class TestController {

	static{
		System.out.println("实例化bean开始1111111111111111111111111");
	}
	
	@Reference(check=false)
	IQueue iqueue; 
	
	
	
	@ResponseBody
	@GetMapping("test")
	public void testPrint() throws Exception{
		System.out.println("debug is start .............");
		EmailConfig vo = new EmailConfig();
		vo.setContent("发送OK");
		iqueue.sendQueue(vo);
	}
	
	
}
